<!--
 * @Author: humengchuan 531537052@qq.com
 * @Date: 2024-05-23 19:16:27
 * @LastEditors: humengchuan 531537052@qq.com
 * @LastEditTime: 2024-06-05 17:18:17
 * @FilePath: \project\record-work-time\src\pages\index\component\popup.vue
 * @Description: 
-->
<template>
    <view>
        <uni-popup ref="popup" :value="true">这是一个弹窗内容</uni-popup>
        <button @click="openPopup">打开弹窗</button>
        <uni-countdown :day="1" :hour="1" :minute="12" :second="40"></uni-countdown>
    </view>
</template>

<script setup>
import { ref, onMounted } from 'vue'

const popup = ref(null);

const openPopup = () => {
    popup.value.open();
}

</script>

<style lang="scss" scoped></style>